import { envPreprocessing } from "@/utils/aesModeCbc";

// 遍历配置文件中所有“VITE_”开头的变量，解密并默认导出所有收集的变量
export default Object.fromEntries(
  Object.entries(import.meta.env)
    .filter(([key]) => key.startsWith("VITE_"))
    .map(([key, value]) => [key, envPreprocessing(value)]));
